
package consys.social.core.dao;

import consys.social.core.bo.DiscussionPost;
import consys.social.core.bo.Entity;
import consys.social.core.bo.WallPost;
import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * Data access for Discussion Service
 *
 * @author Petr Kunc
 */
public interface DiscussionDao {

    void postDiscussion(WallPost post, DiscussionPost discussion) throws IOException;

    void deleteDiscussionPost(WallPost post, DiscussionPost discussion) throws IOException;

    List<DiscussionPost> getDiscussion(WallPost post, int count, Date from, boolean newest) throws IOException;

    boolean isAuthor(Entity author, WallPost post, DiscussionPost discussion) throws IOException;
}